<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/7
  Time: 10:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%--/mydate-->date显示到页面  --%>
<body>
   显示日期：${date}

   <br>
   格式化日期： <fmt:formatDate value="${date}" pattern="yyyy年MM月dd"/>

   <form action="/toDate">
       <input type="text" name="date">
       <br>
       <input type="submit">
   </form>
</body>
</html>
